<!-- 消息页面 -->
<template>
  <div>
    <!-- 导航栏 -->
    <div>
      <div class="s30153804">
        <!-- 返回按钮 -->
        <span class="s-3613cfc6" style="float: left" @click="go">
          <img alt="" title="" src="https://image.hongbeibang.com/FoTuxKG5pqYKuAsT8BjrflkAxEpj?48X48&amp;imageView2/1/w/48/h/48" class="s-6a5cf0dc" />
        </span>
        <!-- 右侧按钮 -->
        <span class="s7d4f25eb" style="float: right; color: #e98b71">{{ rightText }}</span>
        <!-- 标题 -->
        <ul class="s-457b7fc4">
          {{
            title
          }}
        </ul>
      </div>
      <div class="s7e1f0f36"></div>
    </div>
    <router-view></router-view>
  </div>
</template>

<script>
  export default {
    data() {
      return {
        title: '消息',
        rightText: '',
      }
    },
    methods: {
      go() {
        this.title = '消息'
        this.rightText = ''
        this.$router.go(-1)
      },
      ModifyData(i) {
        this.title = i.title
        this.rightText = i.rightText
      },
    },
  }
</script>

<style lang="scss" scoped>
  .s30153804 {
    background: #ffffff;
    height: 44px;
    z-index: 6;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 0 18px;
    margin: 0 auto;
    max-width: 600px;
    box-sizing: border-box;
  }
  // 返回按钮
  .s-3613cfc6 {
    font-size: 0;
    height: 44px;
    display: inline-block;
    cursor: pointer;
    text-align: center;
    position: relative;
    z-index: 1;
  }
  .s-6a5cf0dc {
    width: 27px;
    height: 27px;
    margin: 9.5px 0;
  }
  // 右侧按钮
  .s7d4f25eb {
    margin: 7px 0;
    position: relative;
    z-index: 1;
    font-size: 16px;
    line-height: 30px;
    color: #4a4945;
    float: left;
  }
  //标题
  .s-457b7fc4 {
    width: 100%;
    height: 44px;
    line-height: 44px;
    position: absolute;
    left: 0;
    right: 0;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    padding: 0 90px;
    margin: 0 auto;
    box-sizing: border-box;
    color: #4a4945;
    overflow: hidden;
    text-overflow: ellipsis;
    -otext-overflow: ellipsis;
    -webkit-text-overflow: ellipsis;
    -moz-text-overflow: ellipsis;
    white-space: nowrap;
  }
  .s7e1f0f36 {
    height: 44px;
    overflow: hidden;
    zoom: 1;
  }
</style>
